package cate.common.table.activity.tangyuan;

import cate.common.table.ESheet;
import org.apache.commons.collections4.CollectionUtils;

import java.util.ArrayList;
import java.util.List;

public class TangYuanRubbishSheet extends ESheet<TangYuanRubbishRow> {
    @Override
    public String getSheetName() {
        return "活动开始结束清理";
    }

    public List<TangYuanRubbishRow> rubbishRowList(int confID) {
        List<TangYuanRubbishRow> rubbishList = new ArrayList<>();
        if(CollectionUtils.isEmpty(list)){
            return null;
        }
        for (TangYuanRubbishRow row : list) {
            if(row.confID ==  confID){
                rubbishList.add(row);
            }
        }
        return rubbishList;
    }
}
